home *** CD-ROM | disk | FTP | other *** search
-
- NAME: CTRL
-
- SYNTAX: CTRL <portname>
-
- DESCRIPTION:
-
- CTRL tells the display module to send all further messages (except
- 'normal' keyboard input) to the port named. These messages include
- the messages sent when any function key or the the HELP key is
- pressed.
-
- It is used for transferring control to another script or program.
- For example, you could use a script designed to emulate a terminal
- program and after a connection is made, control could be transferred
- to a script that ran a game or manipulated a database.
-
- If you do not issue a CTRL command, DispMod will use the default
- CTRL port; 'ROBBS_ctrl'.
-
- It is important to note the difference between CTRL and CONNECT. CTRL
- specifies where function key and HELP keypresses are sent, since they
- are usually sent to a 'controlling program', as opposed to a program
- that expects ASCII characters. CONNECT is for sending characters (with
- a command) to a program that understands what to do with them.
-
- Note that a program refers to either an ARexx script or an executable
- written in any other language, and that the CTRL and CONNECT ports may
- be the same port.
-
- EXAMPLE:
-
- CTRL 'ROBBS_checkers'
-
- After executing this command, the display would send all function
- key and HELP key messages to the port named 'CCS_checkers', which
- might have some idea of how to play a game. The script programmer
- is responsible for ensuring that the port named actually exists,
- usually after calling the new program that opens a port of the
- appropriate name.
-
- The function keys send a message with the first srgument being FKEY
- The HELP key sends a message with the first argument being HELP
-
- SEE ALSO: CONNECT, CTRL, STATUS
-